#ifndef LOGMANAGER_H
#define LOGMANAGER_H

#include <wx/sstream.h>
#include <wx/file.h>
#include <wx/filename.h>

class InstantMessage;

class LogWriter
{

private:
    wxFile logFile;

public:
    LogWriter(const wxString& home, const wxString& userPassport);
    ~LogWriter();

public:

    void Log(const wxString username, const wxString& content, bool newline = false);

	void LogInstantMessage(InstantMessage* msg);

};

#endif


